package demo.MovieInfo;

public class Test {
    public static void main( String[] args ) {
        // 目标：完成面向对象综合案例
        // 1、设计电影类Movie，以便创建电影对象，封装电影数据。
        // 2、封装全部电影数据，（自己先造一部分）

        Movie[] movielist = new Movie[6];
        movielist[0] = new Movie( 1, "唐顿庄园", 9.5, "罗宾·怀特" );
        movielist[1] = new Movie( 2, "战狼", 9.5, "吴京" );
        movielist[2] = new Movie( 3, "哈利波特", 9.5, "波特" );
        movielist[3] = new Movie( 4, "星际穿越", 9.5, "安妮" );
        movielist[4] = new Movie( 5, "流浪地球", 9.5, "吴京" );
        movielist[5] = new Movie( 6, "让子弹飞", 9.5, "姜文" );

        MovieService movieservice = new MovieService(movielist);
        movieservice.showAllMovies();
        movieservice.searchMovieById();


    }
}
